#define _CRT_SECURE_NO_WARNINGS

#include <iostream>

using namespace std;

class Date
{
public:
	//Date()
	//{
	//	_year = 2024;
	//	_month = 9;
	//	_day = 9;
	//}
	Date(int year = 2024, int month = 8, int day = 4)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	//Date(int year, int month, int day)
	//{
	//	_year = year;
	//	_month = month;
	//	_day = day;
	//}
	void Print()
	{
		cout << _year << "/" << _month << "/" << _year << endl;
	}
	~Date()
	{
		cout << "~Date()" << endl;
	}
private:
	int _year;
	int _month;
	int _day;
};

class Stack
{
public:
	Stack(int capacity = 4)
	{
		cout << "Stack(int capacity = 4)" << endl;
		_a = (int*)malloc(sizeof(int) * capacity);
		if (_a == nullptr)
		{
			perror("malloc fail");
			exit(1);
		}
		_top = 0;
		_capacity = capacity;
	}
	Push(int x)
	{
		_a[_top++] = x;
	}


private:
	int* _a;
	int _top;
	int _capacity;
};

class Myqueue
{
public:
	

private:
	Stack pushst;
	Stack popst;
};

int main()
{
	

	return 0;
}